package com.zian.domain.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.zian.enums.DefaultFlagEnum;
import com.zian.enums.IsDeletedEnum;
import com.zian.validation.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
@Data
 @ApiModel("SysUserAddress对象" )
public class UserAddressDTO  {

     @ApiModelProperty( "地址主键id")
    @NotNull(message = "地址主键id不能为空",groups = {ValidGroup.Crud.Update.class})
    private Long id;

     @ApiModelProperty( "收货人姓名")
    @NotBlank(message = "收货人姓名不能为空")
    private String userName;

     @ApiModelProperty( "收货人手机号")
    @NotBlank(message = "收货人手机号不能为空")
    private String userPhone;

     @ApiModelProperty( "是否为默认 0-非默认 1-是默认")
    @NotNull(message = "是否为默认不能为空")
    private DefaultFlagEnum defaultFlag;

     @ApiModelProperty( "省")
    @NotBlank(message = "省不能为空")
    private String provinceName;

     @ApiModelProperty( "市")
    @NotBlank(message = "市不能为空")
    private String cityName;

     @ApiModelProperty( "区")
    @NotBlank(message = "区不能为空")
    private String regionName;

     @ApiModelProperty( "收件详细地址(街道/楼宇/单元)")
    @NotBlank(message = "收件详细地址(街道/楼宇/单元)不能为空")
    private String detailAddress;

}
